package com.lagou.io;

import java.io.InputStream;

/**
 * @author 13771
 * @date 2020/7/22 15:08
 * @description
 */
public class Resource {

    //根据配置文件的路径，将配置文件加载成字节输入流，存储在内存中
    public  static InputStream getResourceAsStream(String path){
        InputStream resourceAsStream = Resource.class.getClassLoader().getResourceAsStream(path);

        return  resourceAsStream;
    }
}
